package com.example.lib_apply

import com.example.lib_apply.detail.ParkingEntity
import com.example.lib_apply.detail.VisitorEntity
import com.example.lib_common.mvi.ResponseEntity
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

interface ApiService {
    @POST("sysApply/selAllApply")
    fun requestAll(@Body body: RequestBody):Flow<ResponseEntity<List<ApplyEntity>>>

    @POST("sysApply/selParkingValue")
    fun requestParkingStep(@Body body: RequestBody):Flow<ResponseEntity<List<ParkingEntity>>>

    @POST("sysApply/selVistorValue")
    fun requestVisitorStep(@Body body: RequestBody):Flow<ResponseEntity<List<VisitorEntity>>>
}